import java.util.Scanner;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/10/19 22:11
 * 井字棋
 * 密码强度等级
 */
public class Day10 {
    //密码强度等级
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int grade = 0;
        int lowCh = 0;
        int upperCh = 0;
        int num = 0;
        int symbol = 0;
        int reward = 0;
        while (scanner.hasNext()) {
            String passwd = scanner.nextLine();
            //length
            if (passwd.length() <= 4) {
                grade += 5;
            } else if (5 <= passwd.length() && passwd.length() <= 7) {
                grade += 10;
            } else {
                grade += 25;
            }
            //char
            char[] chars = passwd.toCharArray();
            for (int i = 0; i < passwd.length(); i++) {
                if (chars[i] >= 'a' && chars[i] <= 'z') {
                    lowCh++;
                } else if (chars[i] >= 'A' && chars[i] <= 'Z') {
                    upperCh++;
                } else if (chars[i] >= '0' && chars[i] <= '9') {
                    num++;
                } else {
                    symbol++;
                }
            }
            if (lowCh + upperCh == 0) {
                grade += 0;
            } else if ((lowCh > 0 && upperCh == 0) || (upperCh > 0 && lowCh == 0)) {
                grade += 10;
            } else {
                grade += 20;
            }

            //num
            if (num == 0) {
                grade += 0;
            } else if (num == 1) {
                grade += 10;
            } else {
                grade += 20;
            }
            //symbol
            if(symbol == 0){
                grade += 0;
            }else if(symbol == 1){
                grade += 10;
            }else {
                grade += 25;
            }
            //reward
            if(upperCh!= 0 && lowCh != 0 && num!=0 && symbol != 0){
                grade+=5;
            }else if( upperCh + lowCh != 0 && num != 0 && symbol != 0){
                grade+=3;
            }else if(upperCh + lowCh != 0 && num != 0){
                grade += 2;
            }

            //out
            if(grade >= 90){
                System.out.println("VERY_SECURE");
            }else if (grade >=80 ){
                System.out.println("SECURE");
            }else if (grade >=70 ){
                System.out.println("VERY_STRONG");
            }else if (grade >=60 ){
                System.out.println("STRONG");
            }else if (grade >=50 ){
                System.out.println("AVERAGE");
            }else if (grade >=25 ){
                System.out.println("WEAK");
            }else if (grade >=0 ){
                System.out.println("VERY_WEAK");
            }
        }
    }

    //井字棋
    public boolean checkWon(int[][] board) {
        // write code here
        //行
        int row = 0;
        //列
        int col = 0;
        // \
        int right = 0;
        // /
        int left = 0;
        for (int i = 0; i < 3; i++) {
            right += board[i][i];
            left += board[2 - i][2 - i];
            for (int j = 0; j < 3; j++) {
                row += board[i][j];
                col += board[j][i];
                if (row - 3 == 0 || col - 3 == 0 || right - 3 == 0 || left - 3 == 0) {
                    return true;
                }
            }
        }
        return false;
    }

    public static void main3(String[] args) {
        int arr[] = new int[10];
        System.out.println(arr[10]);
    }

    public static void main2(String[] args) {
        Object o = new Object() {
            @Override
            public boolean equals(Object obj) {
                return true;
            }
        };
        System.out.println(o.equals("www"));
    }

    public static void main1(String[] args) {
        byte b1 = 1, b2 = 2, b3, b6;
        final byte b4 = 4, b5 = 6;
        b6 = b4 + b5; //final 修饰的变量类型 不会变
        System.out.println();
//        b3 = (b1+b2);
//        System.out.println(b3+b6);
    }
}
